package com.wondersgroup.fjzlpt.console.service.inter.yljgjfsb;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by sanma on 2017/8/14.
 */
public interface JfsbxxService {

    /**
     * 分页查询机构机房信息
     * @param map
     * @return
     */
    JSONObject queryPageJfxx (Map map);

    /**
     * 根据ID查询机房设备信息
     * @param map
     * @return
     */
    JSONArray querySbxxById (Map map);


    /**
     * 保存机房信息
     * @param map
     * @return
     */
    JSONObject saveJfxx (Map map);

    /**
     * 保存设备信息
     * @param map
     * @return
     */
    JSONObject saveSbxx (Map map);

    /**
     * 将机房信息导出到Excel
     * @param map
     * @param request
     * @param response
     */
    void downloadToExcel(Map map, HttpServletRequest request, HttpServletResponse response);

}
